/* 门诊缴费页面样式 */

.outpatient-payment {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 80px;
}

/* 顶部导航 */
.header {
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-button {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: #f0f0f0;
}

.title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-icon {
  font-size: 16px;
  color: #666;
  cursor: pointer;
  padding: 4px;
}

/* 患者信息 */
.patient-info {
  background: #fff;
  margin: 12px;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.patient-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.patient-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.patient-id {
  font-size: 14px;
  color: #666;
}

.switch-patient {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1677ff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.switch-patient:hover {
  background-color: #f0f7ff;
}

.switch-icon {
  font-size: 14px;
}

.switch-text {
  font-size: 14px;
}

/* 缴费状态标签 */
.payment-tabs {
  display: flex;
  background: #fff;
  margin: 0 12px 12px;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: #1677ff;
  color: #fff;
  font-weight: 500;
}

/* 缴费项目列表 */
.payment-list {
  padding: 0 12px;
}

.payment-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #1677ff;
}

.item-content {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.item-info {
  flex: 1;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.label {
  color: #666;
  min-width: 80px;
}

.value {
  color: #333;
  margin-left: 8px;
}

.amount {
  color: #ff4d4f;
  font-weight: 600;
  margin-left: 8px;
}

.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.checkbox.checked {
  background: #1677ff;
  border-color: #1677ff;
}

.checkmark {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.detail-link {
  background: none;
  border: none;
  color: #1677ff;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.detail-link:hover {
  background-color: #f0f7ff;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 14px;
}

/* 底部操作栏 */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.select-all {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-text {
  font-size: 14px;
  color: #666;
}

.payment-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.total-amount {
  font-size: 16px;
  font-weight: 600;
  color: #ff4d4f;
}

.payment-button {
  background: #1677ff;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.payment-button:hover:not(:disabled) {
  background: #0958d9;
}

.payment-button:disabled {
  background: #d9d9d9;
  color: #999;
  cursor: not-allowed;
}
